import { lazy} from "react";

import Home from '../pages/home/Index'
import Todo from '../pages/todo/Index'
import Message from '../pages/message/Index'
import App from "../App";


let routes=lazy([
    {
        path:'/',
        element:<App></App>,
        children:[
            {
                path:'/home',
                element:<Home></Home>
            },
            {
                path:'/todo',
                element:<Todo></Todo>
            },
            {
                path:'/message',
                element:<Message></Message>
            }
        ]
    }
])



export default routes;
